<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>librf: resumef::when_结构体 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">librf
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>resumef</b></li><li class="navelem"><a class="el" href="structresumef_1_1when__.html">when_</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="structresumef_1_1when__-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">resumef::when_结构体 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>目前不知道怎么在doxygen里面能搜集到全局函数的文档。故用一个结构体来欺骗doxygen。  
 <a href="structresumef_1_1when__.html#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a6ba9218688af965ccf6d4bd9e98b152a"><td class="memTemplParams" colspan="2">template&lt;_WhenTaskT... _Awaitable&gt; </td></tr>
<tr class="memitem:a6ba9218688af965ccf6d4bd9e98b152a"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structresumef_1_1when__.html#a6ba9218688af965ccf6d4bd9e98b152a">when_all</a> (<a class="el" href="structresumef_1_1scheduler__t.html">scheduler_t</a> &amp;sch, _Awaitable &amp;&amp;... args) -&gt; detail::when_future_t&lt; std::tuple&lt; detail::awaitor_result_t&lt; _Awaitable &gt;... &gt; &gt;</td></tr>
<tr class="memdesc:a6ba9218688af965ccf6d4bd9e98b152a"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待所有的可等待对象完成，不定参数版。  <a href="structresumef_1_1when__.html#a6ba9218688af965ccf6d4bd9e98b152a">更多...</a><br /></td></tr>
<tr class="separator:a6ba9218688af965ccf6d4bd9e98b152a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29810e8fe2efbfb395669971758182fe"><td class="memTemplParams" colspan="2">template&lt;_WhenIterT _Iter&gt; </td></tr>
<tr class="memitem:a29810e8fe2efbfb395669971758182fe"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structresumef_1_1when__.html#a29810e8fe2efbfb395669971758182fe">when_all</a> (<a class="el" href="structresumef_1_1scheduler__t.html">scheduler_t</a> &amp;sch, _Iter begin, _Iter end) -&gt; detail::when_future_t&lt; std::vector&lt; detail::awaitor_result_t&lt; decltype(*std::declval&lt; _Iter &gt;())&gt; &gt; &gt;</td></tr>
<tr class="memdesc:a29810e8fe2efbfb395669971758182fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待所有的可等待对象完成，迭代器版。  <a href="structresumef_1_1when__.html#a29810e8fe2efbfb395669971758182fe">更多...</a><br /></td></tr>
<tr class="separator:a29810e8fe2efbfb395669971758182fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66d4fc83bbdbe36232615ff7d0459049"><td class="memTemplParams" colspan="2">template&lt;_ContainerT _Cont&gt; </td></tr>
<tr class="memitem:a66d4fc83bbdbe36232615ff7d0459049"><td class="memTemplItemLeft" align="right" valign="top">decltype(auto)&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structresumef_1_1when__.html#a66d4fc83bbdbe36232615ff7d0459049">when_all</a> (<a class="el" href="structresumef_1_1scheduler__t.html">scheduler_t</a> &amp;sch, _Cont &amp;cont)</td></tr>
<tr class="memdesc:a66d4fc83bbdbe36232615ff7d0459049"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待所有的可等待对象完成，容器版。  <a href="structresumef_1_1when__.html#a66d4fc83bbdbe36232615ff7d0459049">更多...</a><br /></td></tr>
<tr class="separator:a66d4fc83bbdbe36232615ff7d0459049"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d453b444cfaa704cf7a1da01eed49b9"><td class="memTemplParams" colspan="2">template&lt;_WhenTaskT... _Awaitable&gt; </td></tr>
<tr class="memitem:a1d453b444cfaa704cf7a1da01eed49b9"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structresumef_1_1when__.html#a1d453b444cfaa704cf7a1da01eed49b9">when_all</a> (_Awaitable &amp;&amp;... args) -&gt; <a class="el" href="structresumef_1_1future__t.html">future_t</a>&lt; std::tuple&lt; detail::awaitor_result_t&lt; _Awaitable &gt;... &gt;&gt;</td></tr>
<tr class="memdesc:a1d453b444cfaa704cf7a1da01eed49b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待所有的可等待对象完成，不定参数版。  <a href="structresumef_1_1when__.html#a1d453b444cfaa704cf7a1da01eed49b9">更多...</a><br /></td></tr>
<tr class="separator:a1d453b444cfaa704cf7a1da01eed49b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b8ec7229b5c7dd7c2ae58d3365799dc"><td class="memTemplParams" colspan="2">template&lt;_WhenIterT _Iter&gt; </td></tr>
<tr class="memitem:a9b8ec7229b5c7dd7c2ae58d3365799dc"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structresumef_1_1when__.html#a9b8ec7229b5c7dd7c2ae58d3365799dc">when_all</a> (_Iter begin, _Iter end) -&gt; <a class="el" href="structresumef_1_1future__t.html">future_t</a>&lt; std::vector&lt; detail::awaitor_result_t&lt; decltype(*begin)&gt;&gt;&gt;</td></tr>
<tr class="memdesc:a9b8ec7229b5c7dd7c2ae58d3365799dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待所有的可等待对象完成，迭代器版。  <a href="structresumef_1_1when__.html#a9b8ec7229b5c7dd7c2ae58d3365799dc">更多...</a><br /></td></tr>
<tr class="separator:a9b8ec7229b5c7dd7c2ae58d3365799dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2a8218ff1eb6cb48fb981310a284b84"><td class="memTemplParams" colspan="2">template&lt;_ContainerT _Cont&gt; </td></tr>
<tr class="memitem:aa2a8218ff1eb6cb48fb981310a284b84"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structresumef_1_1when__.html#aa2a8218ff1eb6cb48fb981310a284b84">when_all</a> (_Cont &amp;&amp;cont) -&gt; <a class="el" href="structresumef_1_1future__t.html">future_t</a>&lt; std::vector&lt; detail::awaitor_result_t&lt; decltype(*std::begin(cont))&gt;&gt;&gt;</td></tr>
<tr class="memdesc:aa2a8218ff1eb6cb48fb981310a284b84"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待所有的可等待对象完成，容器版。  <a href="structresumef_1_1when__.html#aa2a8218ff1eb6cb48fb981310a284b84">更多...</a><br /></td></tr>
<tr class="separator:aa2a8218ff1eb6cb48fb981310a284b84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4fe05b26abdab4ff00505ce56674ef9"><td class="memTemplParams" colspan="2">template&lt;_WhenTaskT... _Awaitable&gt; </td></tr>
<tr class="memitem:af4fe05b26abdab4ff00505ce56674ef9"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structresumef_1_1when__.html#af4fe05b26abdab4ff00505ce56674ef9">when_any</a> (<a class="el" href="structresumef_1_1scheduler__t.html">scheduler_t</a> &amp;sch, _Awaitable &amp;&amp;... args) -&gt; detail::when_future_t&lt; when_any_pair &gt;</td></tr>
<tr class="memdesc:af4fe05b26abdab4ff00505ce56674ef9"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待任一的可等待对象完成，不定参数版。  <a href="structresumef_1_1when__.html#af4fe05b26abdab4ff00505ce56674ef9">更多...</a><br /></td></tr>
<tr class="separator:af4fe05b26abdab4ff00505ce56674ef9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eb64c53feea7f37b643f9b9c3faf685"><td class="memTemplParams" colspan="2">template&lt;_WhenIterT _Iter&gt; </td></tr>
<tr class="memitem:a5eb64c53feea7f37b643f9b9c3faf685"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structresumef_1_1when__.html#a5eb64c53feea7f37b643f9b9c3faf685">when_any</a> (<a class="el" href="structresumef_1_1scheduler__t.html">scheduler_t</a> &amp;sch, _Iter begin, _Iter end) -&gt; detail::when_future_t&lt; when_any_pair &gt;</td></tr>
<tr class="memdesc:a5eb64c53feea7f37b643f9b9c3faf685"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待任一的可等待对象完成，迭代器版。  <a href="structresumef_1_1when__.html#a5eb64c53feea7f37b643f9b9c3faf685">更多...</a><br /></td></tr>
<tr class="separator:a5eb64c53feea7f37b643f9b9c3faf685"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a753478e5b7b3df202efc98c0274484e8"><td class="memTemplParams" colspan="2">template&lt;_ContainerT _Cont&gt; </td></tr>
<tr class="memitem:a753478e5b7b3df202efc98c0274484e8"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structresumef_1_1when__.html#a753478e5b7b3df202efc98c0274484e8">when_any</a> (<a class="el" href="structresumef_1_1scheduler__t.html">scheduler_t</a> &amp;sch, _Cont &amp;cont) -&gt; detail::when_future_t&lt; when_any_pair &gt;</td></tr>
<tr class="memdesc:a753478e5b7b3df202efc98c0274484e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待任一的可等待对象完成，容器版。  <a href="structresumef_1_1when__.html#a753478e5b7b3df202efc98c0274484e8">更多...</a><br /></td></tr>
<tr class="separator:a753478e5b7b3df202efc98c0274484e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ec23495051e2b682f27ce0b3d527305"><td class="memTemplParams" colspan="2">template&lt;_WhenTaskT... _Awaitable&gt; </td></tr>
<tr class="memitem:a4ec23495051e2b682f27ce0b3d527305"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structresumef_1_1when__.html#a4ec23495051e2b682f27ce0b3d527305">when_any</a> (_Awaitable &amp;&amp;... args) -&gt; <a class="el" href="structresumef_1_1future__t.html">future_t</a>&lt; when_any_pair &gt;</td></tr>
<tr class="memdesc:a4ec23495051e2b682f27ce0b3d527305"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待任一的可等待对象完成，不定参数版。  <a href="structresumef_1_1when__.html#a4ec23495051e2b682f27ce0b3d527305">更多...</a><br /></td></tr>
<tr class="separator:a4ec23495051e2b682f27ce0b3d527305"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8595c1bc0659b67724654b6661537058"><td class="memTemplParams" colspan="2">template&lt;_WhenIterT _Iter&gt; </td></tr>
<tr class="memitem:a8595c1bc0659b67724654b6661537058"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structresumef_1_1when__.html#a8595c1bc0659b67724654b6661537058">when_any</a> (_Iter begin, _Iter end) -&gt; <a class="el" href="structresumef_1_1future__t.html">future_t</a>&lt; when_any_pair &gt;</td></tr>
<tr class="memdesc:a8595c1bc0659b67724654b6661537058"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待任一的可等待对象完成，迭代器版。  <a href="structresumef_1_1when__.html#a8595c1bc0659b67724654b6661537058">更多...</a><br /></td></tr>
<tr class="separator:a8595c1bc0659b67724654b6661537058"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b9b2f88f5c8cd76dd8d1c70926cc029"><td class="memTemplParams" colspan="2">template&lt;_ContainerT _Cont&gt; </td></tr>
<tr class="memitem:a0b9b2f88f5c8cd76dd8d1c70926cc029"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structresumef_1_1when__.html#a0b9b2f88f5c8cd76dd8d1c70926cc029">when_any</a> (_Cont &amp;&amp;cont) -&gt; <a class="el" href="structresumef_1_1future__t.html">future_t</a>&lt; when_any_pair &gt;</td></tr>
<tr class="memdesc:a0b9b2f88f5c8cd76dd8d1c70926cc029"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待任一的可等待对象完成，容器版。  <a href="structresumef_1_1when__.html#a0b9b2f88f5c8cd76dd8d1c70926cc029">更多...</a><br /></td></tr>
<tr class="separator:a0b9b2f88f5c8cd76dd8d1c70926cc029"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>目前不知道怎么在doxygen里面能搜集到全局函数的文档。故用一个结构体来欺骗doxygen。 </p>
<p>其下的所有成员函数，均是全局函数。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a1d453b444cfaa704cf7a1da01eed49b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d453b444cfaa704cf7a1da01eed49b9">&#9670;&nbsp;</a></span>when_all() <span class="overload">[1/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;_WhenTaskT... _Awaitable&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto resumef::when_::when_all </td>
          <td>(</td>
          <td class="paramtype">_Awaitable &amp;&amp;...&#160;</td>
          <td class="paramname"><em>args</em></td><td>)</td>
          <td> -&gt; <a class="el" href="structresumef_1_1future__t.html">future_t</a>&lt;std::tuple&lt;detail::awaitor_result_t&lt;_Awaitable&gt;...&gt;&gt;
	</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等待所有的可等待对象完成，不定参数版。 </p>
<p>当前协程的调度器通过current_scheduler()宏获得，与带调度器参数的版本相比，多一次resumeable function构造，效率可能低一点。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">args...</td><td>所有的可等待对象。要么是_AwaitableT&lt;&gt;类型，要么是返回_AwaitableT&lt;&gt;类型的函数(对象)。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">[co_await]</td><td>std::tuple&lt;...&gt;。每个可等待对象的返回值，逐个存入到std::tuple&lt;...&gt;里面。void 返回值，存的是std::ignore。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa2a8218ff1eb6cb48fb981310a284b84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2a8218ff1eb6cb48fb981310a284b84">&#9670;&nbsp;</a></span>when_all() <span class="overload">[2/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;_ContainerT _Cont&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto resumef::when_::when_all </td>
          <td>(</td>
          <td class="paramtype">_Cont &amp;&amp;&#160;</td>
          <td class="paramname"><em>cont</em></td><td>)</td>
          <td> -&gt; <a class="el" href="structresumef_1_1future__t.html">future_t</a>&lt;std::vector&lt;detail::awaitor_result_t&lt;decltype(*std::begin(cont))&gt;&gt;&gt;
	</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等待所有的可等待对象完成，容器版。 </p>
<p>当前协程的调度器通过current_scheduler()宏获得，与带调度器参数的版本相比，多一次resumeable function构造，效率可能低一点。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cont</td><td>存访可等待对象的容器。容器内存放的，要么是_AwaitableT&lt;&gt;类型，要么是返回_AwaitableT&lt;&gt;类型的函数(对象)。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">[co_await]</td><td>std::vector&lt;&gt;。每个可等待对象的返回值，逐个存入到std::vector&lt;&gt;里面。void 返回值，存的是std::ignore。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9b8ec7229b5c7dd7c2ae58d3365799dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b8ec7229b5c7dd7c2ae58d3365799dc">&#9670;&nbsp;</a></span>when_all() <span class="overload">[3/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;_WhenIterT _Iter&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto resumef::when_::when_all </td>
          <td>(</td>
          <td class="paramtype">_Iter&#160;</td>
          <td class="paramname"><em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Iter&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; <a class="el" href="structresumef_1_1future__t.html">future_t</a>&lt;std::vector&lt;detail::awaitor_result_t&lt;decltype(*begin)&gt;&gt;&gt;
	</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等待所有的可等待对象完成，迭代器版。 </p>
<p>当前协程的调度器通过current_scheduler()宏获得，与带调度器参数的版本相比，多一次resumeable function构造，效率可能低一点。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">begin</td><td>可等待对象容器的起始迭代器。迭代器指向的，要么是_AwaitableT&lt;&gt;类型，要么是返回_AwaitableT&lt;&gt;类型的函数(对象)。 </td></tr>
    <tr><td class="paramname">end</td><td>可等待对象容器的结束迭代器。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">[co_await]</td><td>std::vector&lt;&gt;。每个可等待对象的返回值，逐个存入到std::vector&lt;&gt;里面。void 返回值，存的是std::ignore。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6ba9218688af965ccf6d4bd9e98b152a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ba9218688af965ccf6d4bd9e98b152a">&#9670;&nbsp;</a></span>when_all() <span class="overload">[4/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;_WhenTaskT... _Awaitable&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto resumef::when_::when_all </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structresumef_1_1scheduler__t.html">scheduler_t</a> &amp;&#160;</td>
          <td class="paramname"><em>sch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Awaitable &amp;&amp;...&#160;</td>
          <td class="paramname"><em>args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; detail::when_future_t&lt;std::tuple&lt;detail::awaitor_result_t&lt;_Awaitable&gt;...&gt; &gt;
	</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等待所有的可等待对象完成，不定参数版。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sch</td><td>当前协程的调度器。 </td></tr>
    <tr><td class="paramname">args...</td><td>所有的可等待对象。要么是_AwaitableT&lt;&gt;类型，要么是返回_AwaitableT&lt;&gt;类型的函数(对象)。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">[co_await]</td><td>std::tuple&lt;...&gt;。每个可等待对象的返回值，逐个存入到std::tuple&lt;...&gt;里面。void 返回值，存的是std::ignore。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a66d4fc83bbdbe36232615ff7d0459049"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66d4fc83bbdbe36232615ff7d0459049">&#9670;&nbsp;</a></span>when_all() <span class="overload">[5/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;_ContainerT _Cont&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">decltype(auto) resumef::when_::when_all </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structresumef_1_1scheduler__t.html">scheduler_t</a> &amp;&#160;</td>
          <td class="paramname"><em>sch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Cont &amp;&#160;</td>
          <td class="paramname"><em>cont</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等待所有的可等待对象完成，容器版。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sch</td><td>当前协程的调度器。 </td></tr>
    <tr><td class="paramname">cont</td><td>存访可等待对象的容器。容器内存放的，要么是_AwaitableT&lt;&gt;类型，要么是返回_AwaitableT&lt;&gt;类型的函数(对象)。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">[co_await]</td><td>std::vector&lt;&gt;。每个可等待对象的返回值，逐个存入到std::vector&lt;&gt;里面。void 返回值，存的是std::ignore。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a29810e8fe2efbfb395669971758182fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29810e8fe2efbfb395669971758182fe">&#9670;&nbsp;</a></span>when_all() <span class="overload">[6/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;_WhenIterT _Iter&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto resumef::when_::when_all </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structresumef_1_1scheduler__t.html">scheduler_t</a> &amp;&#160;</td>
          <td class="paramname"><em>sch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Iter&#160;</td>
          <td class="paramname"><em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Iter&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; detail::when_future_t&lt;std::vector&lt;detail::awaitor_result_t&lt;decltype(*std::declval&lt;_Iter&gt;())&gt; &gt; &gt;
	</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等待所有的可等待对象完成，迭代器版。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sch</td><td>当前协程的调度器。 </td></tr>
    <tr><td class="paramname">begin</td><td>可等待对象容器的起始迭代器。迭代器指向的，要么是_AwaitableT&lt;&gt;类型，要么是返回_AwaitableT&lt;&gt;类型的函数(对象)。 </td></tr>
    <tr><td class="paramname">end</td><td>可等待对象容器的结束迭代器。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">[co_await]</td><td>std::vector&lt;&gt;。每个可等待对象的返回值，逐个存入到std::vector&lt;&gt;里面。void 返回值，存的是std::ignore。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4ec23495051e2b682f27ce0b3d527305"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ec23495051e2b682f27ce0b3d527305">&#9670;&nbsp;</a></span>when_any() <span class="overload">[1/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;_WhenTaskT... _Awaitable&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto resumef::when_::when_any </td>
          <td>(</td>
          <td class="paramtype">_Awaitable &amp;&amp;...&#160;</td>
          <td class="paramname"><em>args</em></td><td>)</td>
          <td> -&gt; <a class="el" href="structresumef_1_1future__t.html">future_t</a>&lt;when_any_pair&gt;
	</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等待任一的可等待对象完成，不定参数版。 </p>
<p>当前协程的调度器通过current_scheduler()宏获得，与带调度器参数的版本相比，多一次resumeable function构造，效率可能低一点。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">args...</td><td>所有的可等待对象。要么是_AwaitableT&lt;&gt;类型，要么是返回_AwaitableT&lt;&gt;类型的函数(对象)。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">[co_await]</td><td>std::pair&lt;intptr_t, std::any&gt;。第一个值指示哪个对象完成了，第二个值存访的对应的返回数据。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0b9b2f88f5c8cd76dd8d1c70926cc029"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b9b2f88f5c8cd76dd8d1c70926cc029">&#9670;&nbsp;</a></span>when_any() <span class="overload">[2/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;_ContainerT _Cont&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto resumef::when_::when_any </td>
          <td>(</td>
          <td class="paramtype">_Cont &amp;&amp;&#160;</td>
          <td class="paramname"><em>cont</em></td><td>)</td>
          <td> -&gt; <a class="el" href="structresumef_1_1future__t.html">future_t</a>&lt;when_any_pair&gt;
	</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等待任一的可等待对象完成，容器版。 </p>
<p>当前协程的调度器通过current_scheduler()宏获得，与带调度器参数的版本相比，多一次resumeable function构造，效率可能低一点。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cont</td><td>存访可等待对象的容器。容器内存放的，要么是_AwaitableT&lt;&gt;类型，要么是返回_AwaitableT&lt;&gt;类型的函数(对象)。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">[co_await]</td><td>std::pair&lt;intptr_t, std::any&gt;。第一个值指示哪个对象完成了，第二个值存访的对应的返回数据。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8595c1bc0659b67724654b6661537058"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8595c1bc0659b67724654b6661537058">&#9670;&nbsp;</a></span>when_any() <span class="overload">[3/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;_WhenIterT _Iter&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto resumef::when_::when_any </td>
          <td>(</td>
          <td class="paramtype">_Iter&#160;</td>
          <td class="paramname"><em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Iter&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; <a class="el" href="structresumef_1_1future__t.html">future_t</a>&lt;when_any_pair&gt;
	</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等待任一的可等待对象完成，迭代器版。 </p>
<p>当前协程的调度器通过current_scheduler()宏获得，与带调度器参数的版本相比，多一次resumeable function构造，效率可能低一点。 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">begin</td><td>可等待对象容器的起始迭代器。迭代器指向的，要么是_AwaitableT&lt;&gt;类型，要么是返回_AwaitableT&lt;&gt;类型的函数(对象)。 </td></tr>
    <tr><td class="paramname">end</td><td>可等待对象容器的结束迭代器。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">[co_await]</td><td>std::pair&lt;intptr_t, std::any&gt;。第一个值指示哪个对象完成了，第二个值存访的对应的返回数据。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af4fe05b26abdab4ff00505ce56674ef9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4fe05b26abdab4ff00505ce56674ef9">&#9670;&nbsp;</a></span>when_any() <span class="overload">[4/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;_WhenTaskT... _Awaitable&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto resumef::when_::when_any </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structresumef_1_1scheduler__t.html">scheduler_t</a> &amp;&#160;</td>
          <td class="paramname"><em>sch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Awaitable &amp;&amp;...&#160;</td>
          <td class="paramname"><em>args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; detail::when_future_t&lt;when_any_pair&gt;
	</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等待任一的可等待对象完成，不定参数版。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sch</td><td>当前协程的调度器。 </td></tr>
    <tr><td class="paramname">args...</td><td>所有的可等待对象。要么是_AwaitableT&lt;&gt;类型，要么是返回_AwaitableT&lt;&gt;类型的函数(对象)。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">[co_await]</td><td>std::pair&lt;intptr_t, std::any&gt;。第一个值指示哪个对象完成了，第二个值存访的对应的返回数据。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a753478e5b7b3df202efc98c0274484e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a753478e5b7b3df202efc98c0274484e8">&#9670;&nbsp;</a></span>when_any() <span class="overload">[5/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;_ContainerT _Cont&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto resumef::when_::when_any </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structresumef_1_1scheduler__t.html">scheduler_t</a> &amp;&#160;</td>
          <td class="paramname"><em>sch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Cont &amp;&#160;</td>
          <td class="paramname"><em>cont</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; detail::when_future_t&lt;when_any_pair&gt;
	</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等待任一的可等待对象完成，容器版。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sch</td><td>当前协程的调度器。 </td></tr>
    <tr><td class="paramname">cont</td><td>存访可等待对象的容器。容器内存放的，要么是_AwaitableT&lt;&gt;类型，要么是返回_AwaitableT&lt;&gt;类型的函数(对象)。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">[co_await]</td><td>std::pair&lt;intptr_t, std::any&gt;。第一个值指示哪个对象完成了，第二个值存访的对应的返回数据。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5eb64c53feea7f37b643f9b9c3faf685"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5eb64c53feea7f37b643f9b9c3faf685">&#9670;&nbsp;</a></span>when_any() <span class="overload">[6/6]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;_WhenIterT _Iter&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto resumef::when_::when_any </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structresumef_1_1scheduler__t.html">scheduler_t</a> &amp;&#160;</td>
          <td class="paramname"><em>sch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Iter&#160;</td>
          <td class="paramname"><em>begin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_Iter&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; detail::when_future_t&lt;when_any_pair&gt;
	</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等待任一的可等待对象完成，迭代器版。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sch</td><td>当前协程的调度器。 </td></tr>
    <tr><td class="paramname">begin</td><td>可等待对象容器的起始迭代器。迭代器指向的，要么是_AwaitableT&lt;&gt;类型，要么是返回_AwaitableT&lt;&gt;类型的函数(对象)。 </td></tr>
    <tr><td class="paramname">end</td><td>可等待对象容器的结束迭代器。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">[co_await]</td><td>std::pair&lt;intptr_t, std::any&gt;。第一个值指示哪个对象完成了，第二个值存访的对应的返回数据。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该结构体的文档由以下文件生成:<ul>
<li>librf/src/<a class="el" href="when__v2_8h_source.html">when_v2.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
